#
# Be sure to run `pod lib lint JMCommonLib.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'JMCommonLib'
  s.version          = '0.7.8'
  s.summary          = '简短描述'

  # This description is used to generate tags and improve search results.
  #   * Think: What does it do? Why did you write it? What is the focus?
  #   * Try to keep it short, snappy and to the point.
  #   * Write the description between the DESC delimiters below.
  #   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = '详细描述'

  s.homepage         = 'http://www.qq.com'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Cansing' => 'Cansing@163.com' }
  s.source           = { :git => 'https://gitee.com/cansng/JMCommonLib.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '12.0'

  #   子文件夹
  s.subspec 'Classes' do |ss|
    # source_files,public_header_files,private_header_files需要在同一级下面
    # ss.private_header_files  =
    # 'waterPurifierModule/Classes/waterPurifierModuleBundle.h',
    # 'waterPurifierModule/Classes/CTWBProgress.h'

    ss.source_files = 'JMCommonLib/Classes/**/*.{h,m}'
    # ss.private_header_files = 'JMCommonLib/Classes/Definition.h'
  end

  #   s.resource_bundles = {
  #     'JMCommonLib' => ['JMCommonLib/**/*.{xib,json,html,jpg,gif,png,xcassets,plist,bundle,geojson}']
  #   }

  #   阿里私有库
  s.dependency 'IMSThingCapability', '1.8.12'
  s.dependency 'AlicloudSecurityGuardSDK', '5.5.999'
  # s.dependency 'IMSThingCapability', '1.8.8'

  #   阿里需要的第三方库
  s.dependency 'CocoaAsyncSocket'
  s.dependency 'Masonry', '1.1.0'
  s.dependency 'AFNetworking', '~> 3.2.1'
  s.dependency 'FFLoading'

  #   pod_target_xcconfig设置的是当前库的Build Settings，这里对应的是illusion库。
  #   user_target_xcconfig设置的是project中的Build Settings，即在运行的target中的Build Settings。

  #   注意:ZFPlayer需要在 podfile 加入以下配置
  #   https://github.com/CocoaPods/CocoaPods/issues/10104
  # post_install do |installer|
  #   installer.pods_project.targets.each do |target|
  #     target.build_configurations.each do |config|
  #
  #         config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
  #         config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  #
  #     end
  #   end
  # end

  s.static_framework = true

  #   pod_target_xcconfig设置的是当前库的Build Settings，这里对应的是illusion库。
  #   user_target_xcconfig设置的是project中的Build Settings,即在运行的target中的Build Settings。
  #   不建议使用，因为pod的设置不应该污染用户的设置，这可能会导致设置冲突，并且影响其他的pod设置
  # s.user_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
  # s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  # s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

  s.xcconfig = {
    'OTHER_LDFLAGS' => '-ld_classic',
    # 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Public/**"',
    # 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
    # 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SUPPORT_MULTI_DEVICES ALCSCLIENT WITH_TLS __APPLE__ WITH_THREADING',
    # 'CLANG_CXX_LANGUAGE_STANDARD' => 'compiler-default', 
    # 'CLANG_CXX_LIBRARY' => 'compiler-default'
  }

end
